/**
 * 
 */
package com.eshopper.user.repository.jpa;

import org.springframework.data.jpa.repository.JpaRepository;

import com.eshopper.user.model.User;

/**
 * @author Arun Kumar, Nov 26, 2014
 *
 */
public interface UserRepository extends JpaRepository<User, Long> {

	/*@Query("select u from User u where u.email=?1 and u.password=?2")
	User login(String email, String password);

	User findByEmailAndPassword(String email, String password);

	@Query("select u from User u where u.email=?1")
	User findUserByEmail(String email);*/
	
	User findByEmail(String email);
	
	User findUserByEmail(String email);
}
